package net.xumf.support.annotation;

import net.xumf.support.enums.Logical;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
@Order(Ordered.HIGHEST_PRECEDENCE)
public @interface RequiresPermissions {

    String[] value() default {};

    Logical logical() default Logical.AND;
}
